home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
mc51bugs.zip
/
Q31603
< prev
next >
Wrap
Text File
|
1988-07-21
|
941b
|
37 lines
Q31603 Fprintf to stdprn appears to be buffered
C Compiler
5.10
MS-DOS
Summary:
Fprintf to stdprn functions differently in C Version 5.10 than it
did in Version 5.00. The following program displays the difference:
#include <stdio.h>
main()
{
int i;
for (i=0;i<10;i++)
{
fprintf(stdprn,"99\r\n");
}
getch();
}
More Information:
When this program is run under C Version 5.00, "99" is printed 10
times before it waits for keyboard input. When run under C Version
5.10, the program waits for keyboard input, then prints "99" 10 times.
To make Version 5.10 behave the same as 5.00, insert the following
line of code just prior to the for loop:
setbuf(stdprn, NULL);
Microsoft is researching this problem and will post new information
as it becomes available.
Keywords: buglist5.10
Updated 88/07/21 03:19